Select, Add, Delete, Columns


In [ ]:
import pandas as pd
import numpy as np

dictionary like operations

dictionary selection with string index

In [ ]:
cookbook_df = pd.DataFrame({'AAA' : [4,5,6,7], 'BBB' : [10,20,30,40],'CCC' : [100,50,-30,-50]})
cookbook_df['BBB']
arithmetic vectorized operation using string indices

In [ ]:

column deletion

In [ ]:


In [ ]:


In [ ]:

add a new column using a Python list

In [ ]:


In [ ]: